package com.mes.cloud.dao;

import com.mes.cloud.api.dto.request.position.SysPositionSuperiorPageRequest;
import com.mes.cloud.entity.SysPositionSuperior;
import com.mes.cloud.entity.vo.position.SysPositionSuperiorVo;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;
import tk.mybatis.mapper.common.ids.SelectByIdsMapper;

import java.util.List;
import java.util.Set;

/**
 * 岗位上级岗位关联表
 *
 * @author 郑样平
 * @version 2019-08-26 14:29:01
 * @email xiaomin.wu1@pactera.com
 */
public interface SysPositionSuperiorDao extends SelectByIdsMapper<SysPositionSuperior>, Mapper<SysPositionSuperior> {

    List<SysPositionSuperiorVo> positionSuperiorList(SysPositionSuperiorPageRequest pageRequest);

    int batchInsert(List<SysPositionSuperior> sysPositionSuperiors);

    int batchDelete(@Param("ids") Set<String> ids);
}
